package com.jy.rhin.model.body.zhuanzhenjianyi;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Data;

/**
 * @Author 姚俊
 * @Date 2023/2/9 11:20
 * @Description 转诊建议
 */
@Data
public class ZhuanZhenJY {

    //转诊标志
    @XPath(path = "/entry/observation/value/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_174_00))
    String zhuanZhenBZ;
    //转诊原因
    @XPath(path = "/entry/observation/entryRelationship/act/text"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_177_00, nullable = true))
    String zhuanZhenYY;
    //转诊日期
    @XPath(path = "/entry/observation/entryRelationship/act/performer/time/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_176_00, nullable = true))
    String zhuanZhenRQ;
    //转诊机构代码
    @XPath(path = "/entry/observation/entryRelationship/act/performer/assignedEntity/representedOrganization/asOrganizationPartOf/wholeOrganization/id/@extension"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_052_00, nullable = true))
    String zhuanZhenJGDM;
    //转诊机构名称
    @XPath(path = "/entry/observation/entryRelationship/act/performer/assignedEntity/representedOrganization/asOrganizationPartOf/wholeOrganization/name/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_013_00, nullable = true))
    String zhuanZhenJGMC;
    //转诊科室代码
    @XPath(path = "/entry/observation/entryRelationship/act/performer/assignedEntity/id/@extension"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_025_00, nullable = true))
    String zhuanZhenKSDM;
    //转诊科室名称
    @XPath(path = "/entry/observation/entryRelationship/act/performer/assignedEntity/representedOrganization/name/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_10_026_00, nullable = true))
    String zhuanZhenKSMC;
    //健康问题评估
    @XPath(path = "/entry/observation/value/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_175_00, nullable = true))
    String jianKangWYPG;
}
